# coding: utf8
import os
cwd = os.getcwd()
format=MARKMIN
#plugin_name = 'plugin_font_orbitron'


def index():
    return dict(message="hello from plugin_font_orbitron.py function index")

def blackoutmidnight():
    return dict(message="hello from plugin_font_orbitron.py, function blackoutmidnight")

def blackout2am():
    return dict(message="hello from plugin_font_orbitron.py, function blackout2am")

def display_static():
    """
    Displays app_name/plugin_font_midnight/static/
    """
    file_name=request.args(0) or redirect(URL('index'))    
    file_path = os.path.join(cwd,'applications',request.application, 'static', 'plugin_font_blackout', file_name)
    if os.path.exists(file_path):
        content=open(file_path,'r').read()
        body = MARKMIN(content)
    else:
        body = MARKMIN('file not found')
    return dict(body=body)
